<?php
include 'conn.php';
$id = $_GET['id'];
$sql = "DELETE FROM student where id={$id}";
$result = mysqli_query($link,$sql);
if (!$result){
    exit('sql语句执行失败。错误信息：'.mysqli_error($link));  // 获取错误信息
}
header("Location:index.php");

?>
